/*
 * @Author: your name
 * @Date: 2021-07-30 09:38:54
 * @LastEditTime: 2021-08-05 16:07:27
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \cms_screen_frontend\src\apis\First\Map\api.ts
 */
import {request} from '../../../util/promise';

// 获取地图的数据(东北区,北，东，南，西)
export const getNortheastArea = async (data) => {
    return await request('smx/map_distribution', 'POST', data);
};

// 获取地图的预警灯数据SMX
export const getWaringLight = async (data) => {
    return await request('smx/light_SMX', 'POST', data);
};

// 获取地图的预警灯数据LOG
export const getWaringLightLOG = async (data) => {
    return await request('log/light_log', 'POST', data);
};

// 获取地图的飞线图
export const getFlyLine = async (data) => {
    return await request('api/smx/light_SMX', 'POST', data);
};

// 获取全部设备预警信息
export const getAllMac = async (data) => {
    return await request('log/MapAlarmTop', 'POST', data);
};
